// 封装localstorage本地存储方法 模块化的文件


// nodeJs 基础

var storage = {
    set(key, value) {
        localStorage.setItem(key, JSON.stringify(key, value));
    },
    get() {
        return JSON.parse(localStorage.getItem(key));
    },
    remove(key) {
        localStorage.removeItem(key);
    }
}

export default storage;